<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ page isErrorPage="true" import="java.io.PrintWriter" %>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Language" content="hu"/>
        <meta http-equiv="Expires" content="0"/>
        <meta http-equiv="imagetoolbar" content="no"/>
		<title>DAMATE - Error</title>
        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/damate.css"/>
        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/layout.css"/>
</head>
               
<body>
	<%
	  String ref = request.getHeader("referer");
	  if (ref != null) { 
	%>
	<iframe src="<%= request.getHeader("referer") %>" width="100%" height="800px">
  		<p>Your browser does not support iframes.</p>
	</iframe>
	<% } %>	
	
	<div class="error-404-overlay centered" ></div>

	<div class="error-page-div">
		<form action="<%=ref == null ? request.getContextPath() : ref %>" method="post">
			<div class="page-error">
				<h1>Error</h1>
				<p>An error occurred during processing the request</p>
				<div class="search">
					<input value="Back" class="small-button greyButton" type="submit" />
				</div>
				<% exception.printStackTrace(new PrintWriter(out)); %>
			</div>
		</form>
	</div>
</body>
</html>